package com.java2_4;

public class make_mechine {
    String name;//成员变量
    int age;
    char sex;
    int index;
    public void text(){ //成员方法
        System.out.println("this is a test!");
    }
    //默认拥有无参数的构造器
    public make_mechine(){

    }
    public make_mechine(String name,int index){
        this.name = name;
        this.index = index;
    }
}
